<template xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
  <div id="app" class="hello">
    <h1>{{ this.userInfo }}</h1>
    <ul>
      <li>
        <router-link to="/home/first">1</router-link>
      </li>
      <li>
        <router-link to="/home/second">2</router-link>
      </li>
    </ul>
    <router-view class="childview" keep-alive></router-view>
  </div>
</template>

<script>
import {mapState} from 'vuex'
export default {
  name: 'hello',
  computed: mapState(['userInfo']),
  }




</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
}



</style>
